//
//  JSPicView.h
//  JSBasicFramework
//
//  Created by Apple on 2018/8/29.
//  Copyright © 2018年 Apple. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "JSPicViewProtocol.h"

@interface JSPicView : UIView

@property (nonatomic, strong) NSArray <id<JSPicViewProtocol>>*dataArray;
@property (nonatomic, strong, readonly) NSArray *pics;
@property (nonatomic, assign) UIEdgeInsets padding;
@property (nonatomic, assign) CGFloat itemMargin;
@property (nonatomic, assign) CGSize wrapSize;

-(void)settingData:(NSArray <id<JSPicViewProtocol>> *)dataArray customChildLayout:(CGRect(^)(JSPicView *picView, UIView *childView, NSInteger idex))customLayout;
//-(instancetype )initWithFrame:(CGRect)frame customChildView:(Class)childView;

-(void)didInitialize;

@end
